package cn.lanqiao.view;

import cn.lanqiao.entity.Manager;
import cn.lanqiao.service.ManagerService;
import cn.lanqiao.service.serviceImpl.ManagerServiceImpl;

import java.util.Scanner;

public class ManagerView {
    ManagerService ms = (ManagerService) new ManagerServiceImpl();
    Scanner sc = new Scanner(System.in);
    public Manager login(){
        System.out.println("请输入账号:");
        String account = sc.next();
        System.out.println("请输入密码：");
        String password = sc.next();
        //调用业务层查询登录用户
        Manager loginuser = ms.login(account,password);
        return loginuser;
    }
}
